
/**
 * 
 */
class IcyObserver {
  constructor() {
    this._cache = {};
  }

  create(event) {
    
    return new Promise((resolve, reject) => {
      
    });
  }

  distribute(event, ...reset) {

  }
}

let icy = IcyObserver();

function test() {
  function test_1() {
    icy
    .create('event_1')
    .then((data) => {
      
    })
    .catch(() => {

    });
  }
  function test_2() {
    let data = {

    };

    icy
    .distribute('event_1', data);
  }
  test_1();
  test_2();
}
test();
